package com.example.demo.client.evt.cssmqry.menu;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Desc
 * @Author zhengmf
 * @Date 2020-01-10 14:51:24
 */
public class FindMenuTreeEvt implements Serializable {
    private static final long serialVersionUID = 6697311058036447674L;
    @ApiModelProperty("菜单ID")
    private String menuId;
    @ApiModelProperty("父菜单ID")
    private String parentId;
    @ApiModelProperty("是否管理员")
    @NotNull
    private Boolean admin;
    @ApiModelProperty("登录名")
    @NotBlank
    private String loginName;

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public Boolean getAdmin() {
        return admin;
    }

    public void setAdmin(Boolean admin) {
        this.admin = admin;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    @Override
    public String toString() {
        return "FindMenuTreeEvt{" +
            "menuId='" + menuId + '\'' +
            ", parentId='" + parentId + '\'' +
            ", admin=" + admin +
            ", loginName='" + loginName + '\'' +
            '}';
    }
}
